package com.qunar.itts.validator;

import javax.validation.Configuration;
import javax.validation.ValidatorFactory;
import javax.validation.spi.BootstrapState;
import javax.validation.spi.ConfigurationState;
import javax.validation.spi.ValidationProvider;

/**
 * TODO
 * @author wangxinchun1988@163.com
 * @date 2015-5-11 上午10:50:02
 */
public class QunarValidationProvider implements ValidationProvider<QunarConfiguration>{

	@Override
	public QunarConfiguration createSpecializedConfiguration(
			BootstrapState state) {
		return null;
	}

	@Override
	public Configuration<?> createGenericConfiguration(BootstrapState state) {
		return new QunarConfiguration();
	}

	@Override
	public ValidatorFactory buildValidatorFactory(
			ConfigurationState configurationState) {
		return new QunarValidatorFactory();
	}

}
